# 求5的阶乘
# 5！ = 5 * 4 * 3 * 2 * 1

chengji = 1
for i in range(1, 6, 1):  # 1 2 3 4 5
    # chengji *= i
    chengji = chengji * i

print(chengji)

# 1~100偶数的和
# sum = 0
# for i in range(1, 101):
#     if i % 2 == 0:
#         sum += i
# print(sum)
sum = 0
for i in range(0, 101, 2):  #
    print(i)
    sum += i
print(sum)


